Auto merge of #1122 - alexcrichton:issue-1119, r=brson
authorbors <bors@rust-lang.org>
Thu, 8 Jan 2015 19:35:06 +0000 (19:35 +0000)
committerbors <bors@rust-lang.org>
Thu, 8 Jan 2015 19:35:06 +0000 (19:35 +0000)
commitc4e9e6d6f7a741e24cfe9239bd2c8521886403b6
tree231632092564dfc7ff95ab627770417bc6f0b7c2
parentd96e97488a797125b6ab42fc878bf47c3bd18546
parentdf19160f03404287bcac3d2991db922211ebb4fb
Auto merge of #1122 - alexcrichton:issue-1119, r=brson

It looks like tags don't always point to tag objects, but rather sometimes to
commits themselves. This tweaks the peeling logic for tags to find an *object*
first, and then peel to a commit, rather than finding a tag first and then
peeling.

Closes #1119
src/cargo/sources/git/utils.rs